//
//  UImageModel.m
//  s.
//
//  Created by fanshijian on 2022/9/2.
//  Copyright © 2022 J. All rights reserved.
//

#import "UImageModel.h"

@implementation UImageModel

- (NSString *)idf {
    if (self.idfBlock) return self.idfBlock();
    return @"BEImageCollectionCell";
}

+ (UImageModel *)cModelUrl:(NSString *)url s:(CGSize)s {
    return [self cModelUrl:url s:s action:nil];
}

+ (UImageModel *)cModelUrl:(NSString *)url s:(CGSize)s action:(NSDictionary *)action {
    UImageModel *model = [[self class] new];
    model.url = url;
    model.layout.itemSize = s;
    model.action = action;
    return model;
}

@end
